package cn.yj.relay.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2020-03-03 17:41
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "tb_emp")
public class Emp extends BaseEntity<Emp>
{
    private static final long serialVersionUID = 1L;





    @NotNull(message = "请填写名称")
    private String name;


    @NotNull(message = "请填写密码")
    private String password;

    private String token;

    @NotNull(message = "请填写手机号")
    private String phone;

    private transient double allMoney;

    private transient int orderCount;
    private transient double royaltyMoney;



}